function thresh=det_thresh_for_peak_resp(ROI_act)
low_dist=ROI_act(ROI_act<median(ROI_act));
thresh=3.72*std(low_dist);